.class Lcom/netease/newsreader/activity/CustomColumn$2;
.super Ljava/lang/Object;
.source "CustomColumn.java"

# interfaces
.implements Landroid/view/View$OnClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/netease/newsreader/activity/CustomColumn;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/netease/newsreader/activity/CustomColumn;


# direct methods
.method constructor <init>(Lcom/netease/newsreader/activity/CustomColumn;)V
    .locals 0
    .parameter

    .prologue
    .line 1
    iput-object p1, p0, Lcom/netease/newsreader/activity/CustomColumn$2;->this$0:Lcom/netease/newsreader/activity/CustomColumn;

    .line 286
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/view/View;)V
    .locals 3
    .parameter "arg0"

    .prologue
    .line 291
    iget-object v1, p0, Lcom/netease/newsreader/activity/CustomColumn$2;->this$0:Lcom/netease/newsreader/activity/CustomColumn;

    invoke-static {v1}, Lcom/netease/newsreader/activity/CustomColumn;->access$5(Lcom/netease/newsreader/activity/CustomColumn;)Lcom/netease/newsreader/util/DragableListView;

    move-result-object v1

    invoke-virtual {v1}, Lcom/netease/newsreader/util/DragableListView;->getMyItemNum()I

    move-result v0

    .line 292
    .local v0, itemnum:I
    const/4 v1, -0x1

    if-eq v0, v1, :cond_0

    .line 293
    iget-object v1, p0, Lcom/netease/newsreader/activity/CustomColumn$2;->this$0:Lcom/netease/newsreader/activity/CustomColumn;

    invoke-static {v1}, Lcom/netease/newsreader/activity/CustomColumn;->access$0(Lcom/netease/newsreader/activity/CustomColumn;)Ljava/util/ArrayList;

    move-result-object v1

    invoke-virtual {v1}, Ljava/util/ArrayList;->size()I

    move-result v1

    if-gt v0, v1, :cond_1

    .line 294
    iget-object v1, p0, Lcom/netease/newsreader/activity/CustomColumn$2;->this$0:Lcom/netease/newsreader/activity/CustomColumn;

    invoke-static {v1}, Lcom/netease/newsreader/activity/CustomColumn;->access$0(Lcom/netease/newsreader/activity/CustomColumn;)Ljava/util/ArrayList;

    move-result-object v1

    add-int/lit8 v2, v0, -0x1

    invoke-virtual {v1, v2}, Ljava/util/ArrayList;->remove(I)Ljava/lang/Object;

    .line 300
    :cond_0
    :goto_0
    iget-object v1, p0, Lcom/netease/newsreader/activity/CustomColumn$2;->this$0:Lcom/netease/newsreader/activity/CustomColumn;

    invoke-static {v1}, Lcom/netease/newsreader/activity/CustomColumn;->access$3(Lcom/netease/newsreader/activity/CustomColumn;)Lcom/netease/newsreader/util/BasePageViewAdapter;

    move-result-object v1

    invoke-virtual {v1}, Lcom/netease/newsreader/util/BasePageViewAdapter;->notifyDataSetChanged()V

    .line 301
    iget-object v1, p0, Lcom/netease/newsreader/activity/CustomColumn$2;->this$0:Lcom/netease/newsreader/activity/CustomColumn;

    invoke-static {v1}, Lcom/netease/newsreader/activity/CustomColumn;->access$2(Lcom/netease/newsreader/activity/CustomColumn;)Lcom/netease/newsreader/util/BasePageViewAdapter;

    move-result-object v1

    invoke-virtual {v1}, Lcom/netease/newsreader/util/BasePageViewAdapter;->notifyDataSetChanged()V

    .line 302
    iget-object v1, p0, Lcom/netease/newsreader/activity/CustomColumn$2;->this$0:Lcom/netease/newsreader/activity/CustomColumn;

    invoke-static {v1}, Lcom/netease/newsreader/activity/CustomColumn;->access$4(Lcom/netease/newsreader/activity/CustomColumn;)Lcom/netease/newsreader/util/MergeAdapter;

    move-result-object v1

    invoke-virtual {v1}, Lcom/netease/newsreader/util/MergeAdapter;->notifyDataSetChanged()V

    .line 303
    return-void

    .line 296
    :cond_1
    iget-object v1, p0, Lcom/netease/newsreader/activity/CustomColumn$2;->this$0:Lcom/netease/newsreader/activity/CustomColumn;

    invoke-static {v1}, Lcom/netease/newsreader/activity/CustomColumn;->access$1(Lcom/netease/newsreader/activity/CustomColumn;)Ljava/util/ArrayList;

    move-result-object v1

    iget-object v2, p0, Lcom/netease/newsreader/activity/CustomColumn$2;->this$0:Lcom/netease/newsreader/activity/CustomColumn;

    invoke-static {v2}, Lcom/netease/newsreader/activity/CustomColumn;->access$0(Lcom/netease/newsreader/activity/CustomColumn;)Ljava/util/ArrayList;

    move-result-object v2

    invoke-virtual {v2}, Ljava/util/ArrayList;->size()I

    move-result v2

    sub-int v2, v0, v2

    add-int/lit8 v2, v2, -0x2

    invoke-virtual {v1, v2}, Ljava/util/ArrayList;->remove(I)Ljava/lang/Object;

    goto :goto_0
.end method
